namespace TrafficLightEmulator.Domain
{
    public class Light
    {
        public LightState State { get; set; }

        public Light()
        {
            State = LightState.Off;
        }

        public void Switch()
        {
            State = State == LightState.On ? LightState.Off : LightState.On;
        }
    }

    public enum LightState
    {
        On,
        Off
    }
}